// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_BP_PRINT_HIS
// * CreateDate    : 2014-02-18 18:04:04
// * Creater       : CodeSmith
// * LastChangeDate: 2014-02-18 18:04:04
// * LastChanger   : 2014-02-18 18:04:04
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Prod
{
/// <summary>
    /// ProdBpPrintHis
    /// </summary>
    public partial class ProdBpPrintHisBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objProdBpPrintHisEntity">Entity</param>
        /// <returns>Entity</returns>
        public static ProdBpPrintHisEntity GetProdBpPrintHis(ProdBpPrintHisEntity objProdBpPrintHisEntity)
        {
            return DataAccess.SelectSingle<ProdBpPrintHisEntity>(objProdBpPrintHisEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objProdBpPrintHisEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertProdBpPrintHis(ProdBpPrintHisEntity objProdBpPrintHisEntity)
        {
            return DataAccess.Insert(objProdBpPrintHisEntity);
        }

        public static bool InsertProdBpPrintHis(List<ProdBpPrintHisEntity> objProdBpPrintHisEntityList)
        {
            return DataAccess.Insert(objProdBpPrintHisEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objProdBpPrintHisEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateProdBpPrintHis(ProdBpPrintHisEntity objProdBpPrintHisEntity)
        {
            return DataAccess.Update(objProdBpPrintHisEntity);
        }

        public static bool UpdateProdBpPrintHis(List<ProdBpPrintHisEntity> objProdBpPrintHisEntityList)
        {
            return DataAccess.Update<ProdBpPrintHisEntity>(objProdBpPrintHisEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objProdBpPrintHisEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteProdBpPrintHis(ProdBpPrintHisEntity objProdBpPrintHisEntity)
        {
            return DataAccess.Delete(objProdBpPrintHisEntity);
        }

        public static bool DeleteProdBpPrintHis(List<ProdBpPrintHisEntity> objProdBpPrintHisEntityList)
        {
            return DataAccess.Delete<ProdBpPrintHisEntity>(objProdBpPrintHisEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetProdBpPrintHisAll()
        {
            return DataAccess.SelectAllDataSet<ProdBpPrintHisEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<ProdBpPrintHisEntity> GetProdBpPrintHisAllList()
        {
            return DataAccess.SelectAll<ProdBpPrintHisEntity>();
        }
        #endregion
	}
	
	
}	

